﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>

<!--[if lt IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

@model IEnumerable<PessModel.sp_GetArchiveExpertScores_Result>

@{
    ViewBag.Title = "录入分数";
}

<h2>录入分数</h2>
<div id="operate">
    @Html.ActionLink("取消","Details","Archive",new {id=(int)ViewBag.ArchiveID},null)
</div>

<fieldset class="show">
    <legend>档案编号：@ViewBag.SerialNumber</legend>
@using(Html.BeginForm("SaveScores2","Score",FormMethod.Post)){
    <div class="displayConScroe">
        <table>
            <tr>
                <th>名称</th>
                <th>说明</th>
                <th>分值</th>
                <th></th>
            </tr>
            @{var scores=Model.ToList();}
            @for (int i = 0; i < scores.Count(); i++)
            {
                <tr>
                    <th>@scores[i].Name</th>
                    <th>@scores[i].Description</th>
                    <th>@scores[i].Value</th>
                    <th>
                        @Html.Hidden("scores["+i+"].RuleID",scores[i].ID)
                        @Html.Hidden("scores["+i+"].ArchiveID",(int)ViewBag.ArchiveID)
                        @Html.TextBox("scores["+i+"].Value", (object)scores[i].ScoreValue == null ? 0 : (decimal)scores[i].ScoreValue ) </th>
                </tr>
            }
        </table>
    </div>
    <input type="submit" value="保存" class="btn" />
}

@using(Html.BeginForm("DeleteScores2","Score",FormMethod.Post))
{
    @Html.Hidden("ArchiveID",(int)ViewBag.ArchiveID)
    <input type="submit" value="删除分数" class="btn" />
}

</fieldset>